package com.woniu.mall.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 售后订单
 * </p>
 *
 * @author lwh
 * @since 2022-07-22
 */
public class Aftermarket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间;作申请时间
     */
    private LocalDateTime createdTime;

    /**
     * 更新时间;作处理时间
     */
    private LocalDateTime updatedTime;

    /**
     * 逻辑删除标识;默认1；删除0
     */
    private String deleteFlag;

    /**
     * 售后订单号
     */
    private String aftermarketNumber;

    /**
     * 订单ID
     */
    private Integer purchaseId;

    /**
     * 售后订单状态
     */
    private Integer state;

    /**
     * 退款金额
     */
    private BigDecimal refund;

    /**
     * 售后类型ID
     */
    private String aftermarketTypeId;

    /**
     * 申请原因
     */
    private String reason;

    /**
     * 管理员ID
     */
    private Integer managementId;

    /**
     * 处理备注
     */
    private String remarks;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }
    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }
    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
    public String getAftermarketNumber() {
        return aftermarketNumber;
    }

    public void setAftermarketNumber(String aftermarketNumber) {
        this.aftermarketNumber = aftermarketNumber;
    }
    public Integer getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(Integer purchaseId) {
        this.purchaseId = purchaseId;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public BigDecimal getRefund() {
        return refund;
    }

    public void setRefund(BigDecimal refund) {
        this.refund = refund;
    }
    public String getAftermarketTypeId() {
        return aftermarketTypeId;
    }

    public void setAftermarketTypeId(String aftermarketTypeId) {
        this.aftermarketTypeId = aftermarketTypeId;
    }
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
    public Integer getManagementId() {
        return managementId;
    }

    public void setManagementId(Integer managementId) {
        this.managementId = managementId;
    }
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "Aftermarket{" +
            "id=" + id +
            ", createdTime=" + createdTime +
            ", updatedTime=" + updatedTime +
            ", deleteFlag=" + deleteFlag +
            ", aftermarketNumber=" + aftermarketNumber +
            ", purchaseId=" + purchaseId +
            ", state=" + state +
            ", refund=" + refund +
            ", aftermarketTypeId=" + aftermarketTypeId +
            ", reason=" + reason +
            ", managementId=" + managementId +
            ", remarks=" + remarks +
        "}";
    }
}
